package net.Reality.Android.Ant;

import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.Point;

public class DrawObject 
{
	String name;
	Matrix matrix;
	Bitmap bitmap;
	Object object;
	boolean freeze;
	int x;
	int y;
	int global_x;
	int global_y;
	
	float height;
	float width;
	
	float heightNach;
	float widthNach;

	
	static DataBase db = new DataBase();
	
	
	
	public DrawObject(String name, Matrix matrix, Bitmap bitmap, Object object, int x, int y)
	{
		this.name = name;
		this.matrix = matrix;
		this.bitmap = bitmap;
		this.object = object;
		heightNach = height = bitmap.getHeight();
		widthNach = width = bitmap.getWidth();
		this.x = x;
		this.y = y;
		freeze = false;
	}
	
	public DrawObject(String name, Matrix matrix, Bitmap bitmap)
	{
		this.name = name;
		this.matrix = matrix;
		this.bitmap = bitmap;
	}
	
	public DrawObject(String name, Bitmap bitmap)
	{
		this.name = name;
		this.bitmap = bitmap;
	}
	
	public Bitmap getBitmap()
	{
		return bitmap;
	}
	
	public Matrix getMatrix()
	{
		return matrix;
	}
	
	public String getName()
	{
		return name;
	}
	
	public Point getXY()
	{
		return new Point(x, y);
	}
	
	public float getHeight()
	{
		return height;
	}
	
	public float getWidth()
	{
		return width;
	}
	
	public float getHeightNach()
	{
		return heightNach;
	}
	
	public float getWidthNach()
	{
		return widthNach;
	}
	
	
	public void setHeight(float height)
	{
		this.height = height;
	}
	
	public void setWidth(float width)
	{
		this.width = width;
	}
	
	public void setMatrix(Matrix matrix)
	{
		this.matrix.set(matrix); 
	}
	
	public void setXY(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
}
